<?php
# multithreads test file 
function runSock($n){
$it = 0;
	while ($n>$it){
		$POSTstr = "id=$it";
		$socket = fsockopen("jam", 80, $error, $errorMsg, 30);
		$out = "POST /%5bPHP%5d%20currency%20parser/test-progress-thead1.php HTTP/1.1\r\n";
		$out .= "Host: jam\r\n";
		$out .= "Content-Type: application/x-www-form-urlencoded\r\n";
		$out .= "Content-Length: ".strlen($POSTstr)."\r\n\r\n";
		$out .= $POSTstr."\r\n\r\n";
		$out .= "Connection: Close\r\n\r\n";
		fputs($socket, $out);
		fclose($socket);
		$it++;
	}
}
runSock(5);
header("location: /%5BPHP%5D%20currency%20parser/test-progress-view.php");

// while(!feof($socket) ){
	// echo fgets($socket)."<br>";
// }

//jam/%5bPHP%5d%20currency%20parser/test-progress-thead1.php

?>